

package org.smallbun.fast.manage.notify.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.smallbun.fast.manage.notify.entity.SysNotifyEntity;
import org.smallbun.fast.manage.notify.entity.SysNotifyRecordEntity;
import org.smallbun.framework.base.BaseMapper;

import java.util.List;

/**
 * 通知通告 Mapper 接口
 * @author SanLi
 * Created by 2689170096@qq.com on 2019/2/14 19:22
 */
@Mapper
public interface SysNotifyMapper extends BaseMapper<SysNotifyEntity> {
	/**
	 * 批量添加
	 * @param recordEntities
	 * @return
	 */
	boolean batchInsertNotifyUser(@Param("p") List<SysNotifyRecordEntity> recordEntities);

	/**
	 * 根据用户id获取用户未读的通知公告
	 * @param userId
	 * @return
	 */
	List<SysNotifyEntity> findNotifyOnUnreadByUserId(Long userId);
}
